package cn.zhaoyuening.leasecloud.device.container;


import io.netty.channel.Channel;

import java.util.Collection;
import java.util.Set;

/**
 * Created by Buynow on 2017/6/14.
 * 用来保存与netty 相连的channel
 */
public interface ChannelContainer {
    Channel get(String channelId);

    void remove(String channelId);

    void remove(Channel channel);

    String add(Channel channel);

    Collection<Channel> allChannel();

    Set<String> allChannelId();

}
